.class Lcom/estrongs/android/taskmanager/af;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/estrongs/android/taskmanager/HomeActivity;


# direct methods
.method constructor <init>(Lcom/estrongs/android/taskmanager/HomeActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/af;->a:Lcom/estrongs/android/taskmanager/HomeActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4

    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/af;->a:Lcom/estrongs/android/taskmanager/HomeActivity;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/HomeActivity;->g(Lcom/estrongs/android/taskmanager/HomeActivity;)Lcom/estrongs/android/taskmanager/bw;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/bw;->f()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/af;->a:Lcom/estrongs/android/taskmanager/HomeActivity;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/HomeActivity;->c(Lcom/estrongs/android/taskmanager/HomeActivity;)I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne p3, v0, :cond_1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/af;->a:Lcom/estrongs/android/taskmanager/HomeActivity;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/HomeActivity;->g(Lcom/estrongs/android/taskmanager/HomeActivity;)Lcom/estrongs/android/taskmanager/bw;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/bw;->d()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    const/16 v0, 0xb

    if-ne p3, v0, :cond_2

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/af;->a:Lcom/estrongs/android/taskmanager/HomeActivity;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/HomeActivity;->g(Lcom/estrongs/android/taskmanager/HomeActivity;)Lcom/estrongs/android/taskmanager/bw;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/bw;->e()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/af;->a:Lcom/estrongs/android/taskmanager/HomeActivity;

    const-string v1, "com.estrongs.android.pop"

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/af;->a:Lcom/estrongs/android/taskmanager/HomeActivity;

    const v3, 0x7f070041

    invoke-virtual {v2, v3}, Lcom/estrongs/android/taskmanager/HomeActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/taskmanager/HomeActivity;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :cond_2
    :try_start_1
    sget v0, Lcom/estrongs/android/taskmanager/HomeActivity;->b:I

    if-ge p3, v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/af;->a:Lcom/estrongs/android/taskmanager/HomeActivity;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/HomeActivity;->f(Lcom/estrongs/android/taskmanager/HomeActivity;)Ljava/util/LinkedList;

    move-result-object v1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/af;->a:Lcom/estrongs/android/taskmanager/HomeActivity;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/HomeActivity;->g(Lcom/estrongs/android/taskmanager/HomeActivity;)Lcom/estrongs/android/taskmanager/bw;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/bw;->f()Z

    move-result v0

    if-eqz v0, :cond_3

    const/4 v0, 0x0

    :goto_1
    add-int/2addr v0, p3

    invoke-virtual {v1, v0}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/taskmanager/bx;

    iget-object v0, v0, Lcom/estrongs/android/taskmanager/bx;->a:Lcom/estrongs/android/taskmanager/bz;

    invoke-interface {v0}, Lcom/estrongs/android/taskmanager/bz;->a()V

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/af;->a:Lcom/estrongs/android/taskmanager/HomeActivity;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/HomeActivity;->f(Lcom/estrongs/android/taskmanager/HomeActivity;)Ljava/util/LinkedList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/LinkedList;->size()I

    move-result v0

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/af;->a:Lcom/estrongs/android/taskmanager/HomeActivity;

    invoke-static {v2}, Lcom/estrongs/android/taskmanager/HomeActivity;->c(Lcom/estrongs/android/taskmanager/HomeActivity;)I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result v2

    sub-int/2addr v0, v2

    add-int/lit8 v0, v0, 0x1

    goto :goto_1
.end method
